using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter36
{
	/// <summary>
	/// Example12: Where Is The Final Image?
	/// Two thin converging lenses of focal lengths f_1 = 10.0 cm
	/// and f_2 = 20.0 cm   
	/// are separated by 20.0 cm, as illustrated in Figure 36.32a. 
	/// An object is placed 30.0 cm to the left of lens 1. Find the 
	/// position and the magnification of the final image.
	/// </summary>
	public class Example12
	{
		public Example12()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Lens ls1 = new L.Lens();
			L.Lens ls2 = new L.Lens();
			ls1.FocalLength = 0.1;
			ls1.ObjectDistance = 0.3;
			ls1.FindImageDistance();
			ls2.FocalLength = 0.2;
			ls2.ObjectDistance = 0.2 - ls1.ImageDistance;
			ls2.FindImageDistance();
			result+=Convert.ToString(ls2.ImageDistance);
		}
	}
}
